#flash= flash[:error]
#content-title
  %h1 Series
#event-listings
  .listing
    %table
      %tr
        %th Name: 
        %td= @series.name
      %tr
        %th Time:
        %td= @series.start_time.strftime("%a %d/%m/%y %H:%M")   
      %tr
        %th Place:
        %td= @series.place
      %tr
        %th Cost:
        %td=@series.cost
      %tr
        %th Description:
        %td= @series.description
    - if @series.events 
      This Series has the following events:
      - @series.events.each do |event|
        %a{:href => event_url(event)}=event.name 
    %a.listings-navigation{:href => new_series_event_url(@series)} Add Event
    %a.listings-navigation{:href => series_url} Back to Index
    - unless @series.end_time < Time.now 
      %a.listings-navigation{:href => edit_one_series_url} Edit Series